﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RRKAutohaus.Model
{
    public class Blog
    {
        public int Id { get; set; }
        public string Subject { get; set; }
        public string Body { get; set; }
        public DateTime LastDateModified { get; set; }
        public UserProfile UserId { get; set; }
        public string TwitterId { get; set; }
        public string FacebookId { get; set; }
        public string Status { get; set; }

 
        //connectors that represents the relationships
        //this properties are not reflected in the database
        public virtual ICollection<Category> Category { get; set; }
        public virtual ICollection<Comments> Comments { get; set; }

        public Blog()
        {
            Category = new HashSet<Category>();
        }

    }

}
